package com.flycun.quickstart.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Customer {

    int id;
    String name;
    String email;
    Date createDate;

   /* public Customer(int id, String name, String email, Date createdDate) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.createdDate = createdDate;
    }*/

    @Override
	public String toString() {
		return "Customer [id=" + id + ", name=" + name + ", email=" + email + ", createDate=" + createDate + "]";
	}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

   
}
